package com.itheima.dao;

import com.itheima.pojo.User;
import com.github.pagehelper.Page;

import java.util.Map;

public interface UserDao {
    public User findByUsername(String username);

    Page<User> findByCondition(String queryString);

    void addUser(User user);

    void deleteAssociation(Integer id);

    void setUserAndRole(Map<String, Integer> map);

    void setRole(Map<String, Integer> userAndRole);

    void deleteById(Integer id);

    Long selectCountByUserId(Integer id);

    User findById(Integer userId);

    void edit(User user);
}
